namespace SampleDbAccess.Context
{
    using Microsoft.EntityFrameworkCore;
    using SampleDbAccess.Model;
    using Stee.CAP8.DBAccess;
    public class SampleContext : DbContext
    {
        public SampleContext(DbContextOptions<SampleContext> options) : base(options) { }
        public SampleContext() : base() { }

        public DbSet<Sample> Sample { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfiguration(new BaseEntityConfiguration<Sample>());
            modelBuilder.Entity<Sample>().ToTable("Sample");
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { }
    }

}
